/* 
 * File:   db_config.h
 * Author: tangchao
 *
 * Created on 2013年5月13日, 上午11:43
 */

#ifndef DB_CONFIG_H
#define	DB_CONFIG_H
    
#define GET_NO_ARG     1
#define GET_BOOL       2
#define GET_INT        3
#define GET_UINT       4
#define GET_LONG       5
#define GET_ULONG      6
#define GET_LL         7
#define GET_ULL        8
#define GET_STR        9
#define GET_STR_ALLOC 10
#define GET_DISABLED  11
#define GET_ENUM      12
#define GET_SET       13
#define GET_DOUBLE    14
#define GET_FLAGSET   15

#define GET_ASK_ADDR	 128
#define GET_TYPE_MASK	 127   
    
enum get_opt_arg_type { NO_ARG, OPT_ARG, REQUIRED_ARG };

struct my_option
{
  const char *name;                   
  int        id;                       
  const char *comment;                 
  void       *value;                    
  void       *u_max_value;              
  struct st_typelib *typelib;           
  ulong     var_type;                   
  enum get_opt_arg_type arg_type;       
  long long   def_value;                 
  long long   min_value;                 
  long long   max_value;                 
  long long   sub_size;                  
  long       block_size;                
  void       *app_type;                 
};
int load_dpfile(void);

#endif	/* DB_CONFIG_H */

